﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: IntegralProductEntity.cs
// 修改时间：2020-9-8 10:40:04
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：IntegralProduct 的实体类.
	/// </summary>
	[Table("IntegralProduct")]
	public partial class IntegralProductEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// 编号(主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private System.String _title = string.Empty;
		/// <summary>
		/// 积分商品名称
		/// </summary>
		[Column("Title",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Title
		{
			get {return _title;}
			set {_title = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 参考价格
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private int? _needIntegral = 0;
		/// <summary>
		/// 兑换积分商品所需积分
		/// </summary>
		[Column("NeedIntegral",TypeName="int")]
		public int? NeedIntegral
		{
			get {return _needIntegral;}
			set {_needIntegral = value;}
		}
		
		private System.String _picture = string.Empty;
		/// <summary>
		/// 积分商品图片
		/// </summary>
		[Column("Picture",TypeName="varchar(500)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Picture
		{
			get {return _picture;}
			set {_picture = value;}
		}
		
		private int? _typeID = 0;
		/// <summary>
		/// 栏目
		/// </summary>
		[Column("TypeID",TypeName="int")]
		public int? TypeID
		{
			get {return _typeID;}
			set {_typeID = value;}
		}
		
		private int? _stocks = 0;
		/// <summary>
		/// 库存
		/// </summary>
		[Column("Stocks",TypeName="int")]
		public int? Stocks
		{
			get {return _stocks;}
			set {_stocks = value;}
		}
		
		private DateTime? _updateTime = null;
		/// <summary>
		/// 添加时间
		/// </summary>
		[Column("UpdateTime",TypeName="datetime")]
		public DateTime? UpdateTime
		{
			get {return _updateTime;}
			set {_updateTime = value;}
		}
		
		private System.String _pictureBig = string.Empty;
		/// <summary>
		/// 大图
		/// </summary>
		[Column("PictureBig",TypeName="varchar(500)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PictureBig
		{
			get {return _pictureBig;}
			set {_pictureBig = value;}
		}
		
		private System.String _content = string.Empty;
		/// <summary>
		/// 内容
		/// </summary>
		[Column("Content",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Content
		{
			get {return _content;}
			set {_content = value;}
		}
		
		private System.String _description = string.Empty;
		/// <summary>
		/// 描述
		/// </summary>
		[Column("Description",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Description
		{
			get {return _description;}
			set {_description = value;}
		}
		
		private System.String _keyword = string.Empty;
		/// <summary>
		/// 关键字
		/// </summary>
		[Column("Keyword",TypeName="varchar(500)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Keyword
		{
			get {return _keyword;}
			set {_keyword = value;}
		}
		
		private int? _exchangeTimes = 0;
		/// <summary>
		/// 兑换次数
		/// </summary>
		[Column("ExchangeTimes",TypeName="int")]
		public int? ExchangeTimes
		{
			get {return _exchangeTimes;}
			set {_exchangeTimes = value;}
		}
		
		private int? _eliteLevel = 0;
		/// <summary>
		/// 推荐级
		/// </summary>
		[Column("EliteLevel",TypeName="int")]
		public int? EliteLevel
		{
			get {return _eliteLevel;}
			set {_eliteLevel = value;}
		}
		
		#endregion
	}
}
